<?php
$connection = mysqli_connect("localhost","root","root","database");
if(!$connection){
	die("无法连接数据库".mysqli_connect_error());
}
mysqli_query($connection,"set names utf8");
session_start();
?>